package com.ruoyi.project.task.transfer.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ruoyi.framework.web.domain.BaseEntity;
import com.ruoyi.project.person.info.domain.PersonInfo;
import com.ruoyi.project.task.mission.domain.TaskMission;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Pathosis
 * @date 2020-09-19 14:25
 * @description:
 */
@JsonIgnoreProperties(value = { "handler"})
public class TaskTransfer extends BaseEntity implements Serializable{
    /** 转移编号*/
    private Long transferId;

    /** 任务编号*/
    private Long missionId;

    /** 申请人编号 */
    private Long infoId;

    /** 被转移人的id */
    private Long toId;

    /** 转移理由 */
    private String transferReason;

    /** 审核状态：0(未批准),1(批准),2(待审核) */
    private String auditState;

    /** 展示状态：0(不展示),1(展示) */
    private String isShow;

    /** 申请人信息 */
    private PersonInfo personInfo;

    /** 转移对象信息 */
    private PersonInfo personInfoTo;

    /** 延期任务信息 */
    private TaskMission taskMission;

    public TaskTransfer() {
    }

    public TaskTransfer(Long transferId, Long infoId, Long toId, String transferReason, String auditState) {
        this.transferId = transferId;
        this.infoId = infoId;
        this.toId = toId;
        this.transferReason = transferReason;
        this.auditState = auditState;
    }

    public String getIsShow() {
        return isShow;
    }

    public void setIsShow(String isShow) {
        this.isShow = isShow;
    }

    public PersonInfo getPersonInfoTo() {
        return personInfoTo;
    }

    public void setPersonInfoTo(PersonInfo personInfoTo) {
        this.personInfoTo = personInfoTo;
    }

    public PersonInfo getPersonInfo() {
        return personInfo;
    }

    public void setPersonInfo(PersonInfo personInfo) {
        this.personInfo = personInfo;
    }

    public TaskMission getTaskMission() {
        return taskMission;
    }

    public void setTaskMission(TaskMission taskMission) {
        this.taskMission = taskMission;
    }

    public Long getMissionId() {
        return missionId;
    }

    public void setMissionId(Long missionId) {
        this.missionId = missionId;
    }

    public Long getTransferId() {
        return transferId;
    }

    public void setTransferId(Long transferId) {
        this.transferId = transferId;
    }

    public Long getInfoId() {
        return infoId;
    }

    public void setInfoId(Long infoId) {
        this.infoId = infoId;
    }

    public Long getToId() {
        return toId;
    }

    public void setToId(Long toId) {
        this.toId = toId;
    }

    public String getTransferReason() {
        return transferReason;
    }

    public void setTransferReason(String transferReason) {
        this.transferReason = transferReason;
    }

    public String getAuditState() {
        return auditState;
    }

    public void setAuditState(String auditState) {
        this.auditState = auditState;
    }

    @Override
    public String toString() {
        return "TaskTransfer{" +
                "transferId=" + transferId +
                ", infoId=" + infoId +
                ", toId=" + toId +
                ", transferReason='" + transferReason + '\'' +
                ", auditState='" + auditState + '\'' +
                '}';
    }
}
